<%@page pageEncoding="ISO-8859-1"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>

<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<%
        request.setAttribute("nombrePagina", "Nuevo Producto");
%>

<f:view>

    <%@include file="/WEB-INF/jspf/header.jspf" %>
    <%@include file="/WEB-INF/jspf/breadcumbs.jspf" %>
    <%@include file="/WEB-INF/jspf/options.jspf" %>

    <rich:panel>
        <h1><h:outputText value="Nuevo Producto" /></h1>
        <h:form>

            <h:messages showDetail="true" />
            <h:panelGrid columns="2">
                <h:outputLabel value="Nombre: " for="txtNombre"/>
                <h:inputText id="txtNombre" value="#{ProductoSbsController.tipoCredito.nombre}" />

                <h:outputLabel value="Descripcion: " for="txtDescripcion"/>
                <h:inputTextarea id="txtDescripcion" cols="20" rows="5" value="#{ProductoSbsController.tipoCredito.descripcion}" />

                <br>
                <h:panelGroup></h:panelGroup>

                <h:commandButton id="btnRegistrar" value="Registrar" action="#{ProductoSbsController.registrar}" />
                <h:commandButton id="btnCancelar" value="Cancelar" action="regresar" />


            </h:panelGrid>
        </h:form>
    </rich:panel>

    <%@include file="/WEB-INF/jspf/footer.jspf" %>
</f:view>